package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcKqworksMapper;
import com.ruoyi.gcgl.domain.GcKqworks;
import com.ruoyi.gcgl.service.IGcKqworksService;
import com.ruoyi.common.core.text.Convert;

/**
 * 每日出勤情况登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-28
 */
@Service
public class GcKqworksServiceImpl implements IGcKqworksService 
{
    @Autowired
    private GcKqworksMapper gcKqworksMapper;

    /**
     * 查询每日出勤情况登记
     * 
     * @param id 每日出勤情况登记主键
     * @return 每日出勤情况登记
     */
    @Override
    public GcKqworks selectGcKqworksById(Long id)
    {
        return gcKqworksMapper.selectGcKqworksById(id);
    }

    /**
     * 查询每日出勤情况登记列表
     * 
     * @param gcKqworks 每日出勤情况登记
     * @return 每日出勤情况登记
     */
    @Override
    public List<GcKqworks> selectGcKqworksList(GcKqworks gcKqworks)
    {
        return gcKqworksMapper.selectGcKqworksList(gcKqworks);
    }

    /**
     * 新增每日出勤情况登记
     * 
     * @param gcKqworks 每日出勤情况登记
     * @return 结果
     */
    @Override
    public int insertGcKqworks(GcKqworks gcKqworks)
    {
        return gcKqworksMapper.insertGcKqworks(gcKqworks);
    }

    /**
     * 修改每日出勤情况登记
     * 
     * @param gcKqworks 每日出勤情况登记
     * @return 结果
     */
    @Override
    public int updateGcKqworks(GcKqworks gcKqworks)
    {
        return gcKqworksMapper.updateGcKqworks(gcKqworks);
    }

    /**
     * 批量删除每日出勤情况登记
     * 
     * @param ids 需要删除的每日出勤情况登记主键
     * @return 结果
     */
    @Override
    public int deleteGcKqworksByIds(String ids)
    {
        return gcKqworksMapper.deleteGcKqworksByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除每日出勤情况登记信息
     * 
     * @param id 每日出勤情况登记主键
     * @return 结果
     */
    @Override
    public int deleteGcKqworksById(Long id)
    {
        return gcKqworksMapper.deleteGcKqworksById(id);
    }
}
